package com.zxn.xiaoran.model.api;


import com.zxn.xiaoran.model.bean.ImageListInfo;

import java.util.Map;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * Created by zxn on 2019/7/29.
 */
public interface IQiniuApi {
//    GET /list?bucket=<Bucket>&marker=<Marker>&limit=<Limit>&prefix=<UrlEncodedPrefix>&delimiter=<UrlEncodedDelimiter> HTTP/1.1
//    Host:           rsf.qbox.me
//    Content-Type:   application/x-www-form-urlencoded
//    Authorization:  QBox <AccessToken>

    //http://rsf.qbox.me/list?bucket=zxn0721&limit=10
    /**
     * 获取图片的列表.
     *
     * @return
     */
    @GET("list")
    Observable<ImageListInfo> list(@QueryMap Map<String, String> parameters);
}
